package com.example.wms;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

/**
 * @author      Alexander Huynh <a.huynh @ gatech.edu>
 * @version     1.0
 * @since       2013-03-08
 */
public class AdminHandler extends Activity
{
    @Override public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.admin_screen);
    }
    /**
     * Called when the "Unlock account" button is pressed.
     *
     * @param view  the content view
     */
    public void unlock(View view)
    {
        //TODO application logic here
    }

    /**
     * Called when the "Make new admin" button is pressed. Goes to the registration screen.
     *
     * @param view  the content view
     */
    public void makeNew(View view)
    {
        Intent intent = new Intent(this, registerActivity.class);
        startActivity(intent);
    }

    /**
     * Called when the "Back" button is pressed. Goes back to the home screen.
     *
     * @param view  the content view
     */
    public void goBack(View view)
    {
        finish();
    }
}
